﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using HotelSoft.HotelManagement_DAO;
using System.Collections;
using System.Data;
using HotelSoft.HotelManagement_DTO;

namespace HotelSoft.HotelManagement_BUS
{
    class LoaiphongBUS:AbstractBUS
    {
        private LoaiphongDAO dao = new LoaiphongDAO();

        public DataTable SelectAll()
        {
            return LoaiphongDAO.SelectAll();
        }

        public DataTable SelectAll_DieuKien(object AbstractDTO)
        {
            return LoaiphongDAO.SelectAll_Dieukien(AbstractDTO);
        }

        public override bool Them(object AbstractDTO)
        {
            return dao.Them(AbstractDTO);
        }

        public override bool CapNhatThongTin(object AbstractDTO)
        {
            return dao.CapNhatThongTin(AbstractDTO);
        }

        public override void Xoa(ArrayList ds)
        {
             dao.Xoa(ds);
        }

        public ArrayList TraCuuPhong(ArrayList dsPhong, LoaiPhongDTO dtoPhongCanTraCuu)
        {
            return dao.TraCuuLoaiPhong(dsPhong,dtoPhongCanTraCuu);
        }
        public ArrayList LayDanhSachLoaiPhong()
        {
            return dao.LayDanhSachLoaiPhong();
        }

        public static List<LoaiPhongDTO> LayDSLoaiPhong()
        {
            return LoaiphongDAO.LayDSLoaiPhong();
        }

        public bool KTMA(object AbstractDTO)
        {
            return dao.KTMA(AbstractDTO);
        }
    }
}
